﻿
@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>Index</title>
    <script src="https://code.jquery.com/jquery-3.4.1.js"></script>
    <script>
        $(function () {
            $("#msg").val("");
            $('#SchedulerStart').click(function () {
                $.ajax({
                    url: "Home/SchedulerStart",
                    data: {

                    },
                    success: function (result) {
                        $("#msg").val(result);
                    }
                });
            });
            $('#SchedulerShutdown').click(function () {
                $.ajax({
                    url: "Home/SchedulerShutdown",
                    data: {

                    },
                    success: function (result) {
                        $("#msg").val(result);
                    }
                });
            });
            $('#ResumeJobBackup').click(function () {
                $.ajax({
                    url: "Home/ResumeJobBackup",
                    data: {

                    },
                    success: function (result) {
                        $("#msg").val(result);
                    }
                });
            });
            $('#PauseJobBackup').click(function () {
                $.ajax({
                    url: "Home/PauseJobBackup",
                    data: {

                    },
                    success: function (result) {
                        $("#msg").val(result);
                    }
                });
            });
            $('#ResumeJobBat').click(function () {
                $.ajax({
                    url: "Home/ResumeJobBat",
                    data: {

                    },
                    success: function (result) {
                        $("#msg").val(result);
                    }
                });
            });
            $('#PauseJobBat').click(function () {
                $.ajax({
                    url: "Home/PauseJobBat",
                    data: {

                    },
                    success: function (result) {
                        $("#msg").val(result);
                    }
                });
            });
            $('#message').click(function () {
                $.ajax({
                    url: "Home/Message",
                    data: {

                    },
                    success: function (result) {
                        $("#msg").val(result);
                    }
                });
            });
        });
    </script>
</head>
<body>
    <div>
        <input type="button" id="SchedulerStart" value="开始作业" />
        <input type="button" id="SchedulerShutdown" value="停止作业" />
        <input type="button" id="ResumeJobBackup" value="开始备份作业" />
        <input type="button" id="PauseJobBackup" value="停止备份作业" />
        <input type="button" id="ResumeJobBat" value="开始批处理作业" />
        <input type="button" id="PauseJobBat" value="停止批处理作业" />
        <input type="button" id="message" value="查看日志信息" />
    </div>
    <div>
        <textarea type="text" style="width:600px;height:600px;" id="msg" />
    </div>
</body>
</html>
